<!doctype html>

<html lang="{{ .Site.LanguageCode | default "en" }}">

<head>
  <title>{{ if and (not .IsHome) (.Title) }}{{ .Params.Title }} - {{ end }}{{ .Site.Title }}</title>
  {{ partial "meta" . }}
  {{ partialCached "header_includes" . -}}
</head>

<body>
  <header>
    <div id="overlay"></div>
    <div id="content">
      <ul id="social-media">
        {{ if .IsTranslated }}
        {{ range .Translations }}
            <li>
            <a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
            </li>
        {{ end }}
        {{ end }}
        {{- range .Site.Data.social.social_icons -}}
            {{- if isset $.Site.Author .id }}
                <li>
                <a href="{{ printf .url (index $.Site.Author .id) }}" title="{{ .title }}">
                <i class="{{ .icon }} fa-lg"></i>
                </a>
                </li>
            {{- end -}}
        {{ end }}
      </ul>

      {{ partial "site_logo" . }}
      <h1>
      <a href="{{ relLangURL "/" }}">{{ .Site.Title | markdownify }}</a>
      </h1>

      {{ with .Site.Params.tagline }}
      <p><em>{{ . | markdownify }}</em></p>
      {{ end }}
    </div>
  </header>
  <div id="container">


    {{ partial "nav" . }}

    <main>
